/**
 * @file base_msg.h
 * @author HaoyuWang (136046355@qq.com)
 * @brief 消息基类
 * @version 0.1
 * @date 2025-01-24
 * 
 * @copyright Copyright (c) 2025
 * 
 */

#ifndef __BASE_MSG_H__
#define __BASE_MSG_H__

#include <cstdint>

class BaseMsg
{
public:
    enum MsgType{
        SERVICE = 1,
        SOCKET_ACCEPT = 2,
        SOCKET_RW = 3,
        LOG = 4,
    };

public:
    BaseMsg();
    virtual ~BaseMsg();

    inline void SetType(MsgType type){
        type_ = type;
    }
    inline MsgType GetType(){
        return type_;
    }

public:
    MsgType type_;
};


#endif  // __BASE_MSG_H__